#ifndef ACTORDONKEYKONG_H
#define ACTORDONKEYKONG_H

#pragma once

#include "Actor.h"
#include "SpriteDonkeyKong.h"
#include "ActorBarrel.h"
#include "StateSetFactory.h"
#include "Sound.h"
#include <vector>

#define MAX_BARRELS 5

class ActorDonkeyKong:public Actor{
private:
	SpriteDonkeyKong* grafic;
	ActorBarrel* barrels[MAX_BARRELS];
	CollisionDetection* collision;
	Sound* msound;
	int numberofbarrels;
	int animationdelay;
	int barreltimer;
	bool playerlost;
	int throwtimer;
	int waitingbarrel;

	unsigned int LastBonusTime;
	int LastBonusBarrel;
	int score;
public:
	ActorDonkeyKong(CL_GraphicContext gc);
	bool fixedstanding();
	void throwbarrel();
	bool hasplayerlost();
	void loosingdonkey();
	void reset(bool gameover);
	~ActorDonkeyKong();
};

#endif